/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assignment2.coreprinciples.student;

import za.ac.cput.assignment2.coreprinciples.PersonInterface;

/**
 *
 * @author yandiswa
 */
public class Student implements PersonInterface{
    
    private String name;
    private String studNum;
    
    public Student(){
        
    }
    
    public Student(String nm, String stud){
        
        name = nm;
        studNum = stud;
       
    
    }

  

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the studNum
     */
    public String getStudNum() {
        return studNum;
    }

    /**
     * @param studNum the studNum to set
     */
    public void setStudNum(String studNum) {
        this.studNum = studNum;
    }

    @Override
    public String name(String nm) {
        return nm;
    }
    
}
